package com.example.demo.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.domain.UserEntity;
import com.example.demo.repository.UserRepository;

/**
 * @Description
 * @ClassName UserServiceImpl
 * @Author: jinqi.zhu
 * @Create: 2021/8/16 10:36
 */
@Service
public class UserServiceImpl implements UserService {

    private static final Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

    @Autowired
    private UserRepository userRepository;

    @Override
    public UserEntity save(UserEntity userEntity) {
        UserEntity save = userRepository.save(userEntity);
        return save;
    }
}
